//
//  BEMyOrdersViewModel.swift
//  BEGlobalOiler
//
//  Created by KKING on 16/9/14.
//  Copyright © 2016年 Bullseye Energy pte ltd. All rights reserved.
//

import UIKit

class BEMyOrdersViewModel: NSObject {

    var listOrder: BEOrderModel?
    
    var orderStatusName: String?
    var companyName: String?
    var rigName: String?
    var rigLocation: String?
    var actualStartTime: String?
    
    var orderSn: String?
    
    var orderId: Int64?
    var orderStatus: Int?

    
    init(orderModel: BEOrderModel) {
        super.init()
        self.listOrder = orderModel

        orderStatusName = orderModel.orderTalentStatusName
        companyName = orderModel.companyName
        rigName = orderModel.rigName
        rigLocation = orderModel.rigLocation
        actualStartTime = orderModel.actualStartTime
        orderSn = orderModel.orderSn
        orderId = Int64(orderModel.id!)
    }
}
